
package {
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.net.URLRequest;
	
	/**
	 * MainLoad
	 *
	 * @author chris
	 *
	 * Apr 9, 2013
	 */
	public class MainLoad extends Sprite {
		
		private var main:Object;
		private var mainLoad:Loader;
		
		public function MainLoad()
		{
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			mainLoad = new Loader();
			mainLoad.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
			mainLoad.load(new URLRequest("FireCharge.swf"));
		}
		
		private function onComplete(evt:Event):void {
			main = evt.target.content;
			this.addChild(main as DisplayObject);
		}
	}
}